package com.jiaozi.system.enums;

import com.jiaozi.base.enums.sys.bean.ITagEnumBean;
import com.jiaozi.base.enums.sys.bean.TagEnumBean;
import com.jiaozi.base.enums.sys.bean.TagEnumStyle;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 岗位数据权限
 */
@Getter
@AllArgsConstructor
public enum RoleRangeEnum implements ITagEnumBean {

    ALL("全部数据权限",new TagEnumStyle(TagEnumStyle.TagTypeEnum.primary)),
    DIY("自定义数据权限",new TagEnumStyle(TagEnumStyle.TagTypeEnum.success)),
    DEPARTMENT("本部门数据权限",new TagEnumStyle(TagEnumStyle.TagTypeEnum.warning)),
    DEPARTMENT_AND_CHILD("本部门及子部门数据权限",new TagEnumStyle(TagEnumStyle.TagTypeEnum.danger)),
    ONLY_MYSELF("仅本人权限",new TagEnumStyle(TagEnumStyle.TagTypeEnum.info));



    private  String msg;
    private TagEnumStyle style;

    @Override
    public String toString() {

        return this.name();
    }
    @Override
    public TagEnumBean getTagBean() {
        return new TagEnumBean(this.getMsg(),this.getStyle());
    }


}
